package org.budo.cmbc.direct.sdk.entity;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author lmw
 */
@Getter
@Setter
@Accessors(chain = true)
@NoArgsConstructor
public class MECustInfoCheckResponse extends AbstractCmbcDirectResponse {
    private static final long serialVersionUID = -2309187132018200064L;

    private String addrCheckFlag;

    private String occupationFlag;

    private String addrFlag;

    private String companyCheckFlag;

    private String companyFlag;

    private String occupationCheckFlag;

    public MECustInfoCheckResponse(String channelJnlNo, String responseJson) {
        super(channelJnlNo, responseJson);

        JSONObject jsonObject = JSON.parseObject(responseJson);

        this.setAddrCheckFlag(jsonObject.getString("AddrCheckFlag"));
        this.setOccupationFlag(jsonObject.getString("OccupationFlag"));
        this.setAddrFlag(jsonObject.getString("AddrFlag"));

        this.setCompanyCheckFlag(jsonObject.getString("CompanyCheckFlag"));
        this.setCompanyFlag(jsonObject.getString("CompanyFlag"));
        this.setOccupationCheckFlag(jsonObject.getString("OccupationCheckFlag"));
    }
}